package com.blog.vo;

import com.blog.entity.UsersEntity;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * @Author：CreateSequence
 * @Date：2020-08-15 19:36
 * @Description：用户信息VO
 */
@Data
public class UsersVO implements Serializable {

    private String usersName;

    private String usersHead;

    private String usersMotto;

    private String usersGiteeWebsite;

    private String usersGithubWebsite;

    private String usersBlogWebsite;

    /**
     * 将Users对象转换为UsersVO对象
     * @param users
     */
    public UsersVO(UsersEntity users) {
        BeanUtils.copyProperties(users,this);
    }

    public UsersVO() {}
}
